package com.ruoyi.qsng.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 发票管理对象 k_invoice
 * 
 * @author kanglou
 * @date 2023-06-07
 */
@ApiModel("发票管理对象 k_invoice")
public class KInvoice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 申请人id */
    @Excel(name = "申请人id")
    @ApiModelProperty("申请人id")
    private String userId;

    /** 购买人id */
    @Excel(name = "购买人id")
    @ApiModelProperty("购买人id")
    private String purchaseId;

    /** 发票地址 */
    @Excel(name = "发票地址")
    @ApiModelProperty("发票地址")
    private String url;

    /** 当前状态0发起申请1已上传 */
    @Excel(name = "当前状态0发起申请1已上传")
    @ApiModelProperty("当前状态0发起申请1已上传")
    private Integer state;

    /** 主键 */
    private String id;

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setPurchaseId(String purchaseId) 
    {
        this.purchaseId = purchaseId;
    }

    public String getPurchaseId() 
    {
        return purchaseId;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("purchaseId", getPurchaseId())
            .append("url", getUrl())
            .append("state", getState())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
